﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CallBackList.aspx.cs" Inherits="carinsurance_offline_CallBackList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>
        Call Back List
        - GG-CRM - กล้วยๆ.com - Teledirect Thailand</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <h1>
        <asp:Label runat="server" ID="lblCallStatusTitile" Text="Call Back List" /></h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false"
        ID="lblLangOption" />
    <div>
        <div style="float:left"><asp:Label runat="server" ID="lblRecordCount" CssClass="red" />
        &nbsp;&nbsp;</div><div style="float:right"><asp:Button runat="server" ID="btnRefresh" Text="Refresh"
            CssClass="blueB ml10" OnClick="btnRefresh_Click" /></div>
    </div>
    <div class="toggle">
        <asp:GridView ID="GridView1" CssClass="sTable" Width="100%" runat="server" AutoGenerateColumns="False"
            OnRowDataBound="GridView1_RowDataBound">
            <Columns>
                <asp:BoundField DataField="AgentLeadID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                    SortExpression="AgentLeadID" Visible="false" />
                <asp:BoundField DataField="AgentID" HeaderText="AgentID" Visible="false" SortExpression="AgentID" />
                <asp:BoundField DataField="CallType" HeaderText="<%$Resources:General, CallType%>"
                    Visible="false" SortExpression="CallType" />
                <asp:BoundField DataField="CallTypeDesc" ItemStyle-Width="70px" HtmlEncode="false"
                    Visible="false" HeaderText="<%$Resources:General, CallType%>" ReadOnly="True"
                    SortExpression="CallTypeDesc" />
                <asp:TemplateField HeaderText="Details" ItemStyle-Width="30%">
                    <ItemTemplate>
                        <table width="100%">
                            <tr>
                                <td style="width: 70px">
                                    Call ID
                                </td>
                                <td style="width: 10px">
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" style="display:none;" ID="lblAgentLeadID" />
                                    <strong>
                                        <%#Eval("AgentLeadID")%></strong>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 70px">
                                    <%=GetGlobalResourceObject("CarInsurance", "CarID")%>
                                </td>
                                <td style="width: 10px">
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" ForeColor="Red" style="display:none;" runat="server" ID="lblCarID" />
                                    <asp:Label Font-Bold="true" ForeColor="Red" style="display:none;" runat="server" ID="lblCustomerID" />
                                    <asp:Label Font-Bold="true" ForeColor="Red" style="display:none;" runat="server" ID="lblCallTypeID" />
                                    <strong style="color: Red;">
                                        <%#Eval("CarID")%></strong>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 70px">
                                    Customer
                                </td>
                                <td style="width: 10px">
                                    :
                                </td>
                                <td>
                                    <strong>
                                        <%#Eval("CustomerName")%></strong>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <strong>
                                        <%#Eval("MakeModelDesc")%></strong>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Details" ItemStyle-Width="50%">
                    <ItemTemplate>
                        <table width="100%">
                            <tr>
                                <td colspan="3">
                                    Call Type &nbsp;:&nbsp; <strong><%#Eval("CallTypeName")%></strong>
                                    <%--<%=GetGlobalResourceObject("General", "CallType")%> &nbsp;:&nbsp; <strong>
                                        <asp:Literal runat="server" ID="lblCallTypeDesc" />
                                    </strong>--%>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <%=GetGlobalResourceObject("CarInsurance", "CoverCommencementDate")%>
                                    &nbsp;:&nbsp; <strong><span style="color: green;">
                                        <%#Eval("CommencementDate")%></span></strong> &nbsp;|&nbsp;
                                    <%=GetGlobalResourceObject("CarInsurance", "QuoteDate")%>
                                    &nbsp;:&nbsp; <strong>
                                        <%#Eval("QuoteDate")%></strong>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <strong>
                                        <asp:Literal runat="server" ID="lblCallStatusDesc" /></strong>
                                </td>
                            </tr>
                            <tr style="background-color: #ffffcc;">
                                <td colspan="3">
                                    <%=GetGlobalResourceObject("General", "Comments")%>: <strong>
                                        <%#Eval("Remark")%></strong>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Status" ItemStyle-Width="20%">
                    <ItemTemplate>
                        <table width="100%">
                            <tr>
                                <td>
                                    <asp:HyperLink onclick="javascript:return confirm('คุณแน่ใจหรือไม่ที่จะติดต่อเรา?\nAre you sure to CALL NOW?');"
                                        ID="hplCallNow" CssClass="wButton bluewB mr15 mt10" runat="server" NavigateUrl="#"><%=GetGlobalResourceObject("General", "CallNow")%></asp:HyperLink>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <strong>
                                        <%#Eval("ModifiedDate")%></strong>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle Font-Bold="true" Font-Size="14px" />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle />
        </asp:GridView>
        <div class="clear">
        </div>
    </div>
</asp:Content>
